<!--
  author 袁野
  contcat 15164619605
 -->
<template>
  <el-container style="height: 100vh;">
    <el-header style="background: #409EFF; color: #fff;">
      <h1>物料管理系统</h1>
    </el-header>

    <el-container>
      <!-- 左侧菜单栏 -->
      <el-aside width="200px" style="background-color: #f4f4f4;">
        <el-menu>
          <el-menu-item index="1" to="/">物料管理</el-menu-item>
        </el-menu>
      </el-aside>

      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
    <!-- Footer: 页脚 -->
    <el-footer style="text-align: center; background-color: #f4f4f4; padding: 10px;">
      <span>© 2025 物料管理系统 | All Rights Reserved</span>
    </el-footer>
  </el-container>
</template>
<script>
export default {
  name: 'App',
};
</script>
<style scoped>
/* 设置整体字体和基本样式 */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
}

/* 页头样式 */
.header-actions {
  display: flex;
  gap: 15px;
}

.header-actions .el-button {
  margin-left: 15px;
  padding: 8px 20px;
  font-size: 14px;
}

/* 标题样式 */
.title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

/* 主体区域 */
.el-main {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

/* 页脚样式 */
.el-footer {
  font-size: 14px;
  color: #888;
}

/* 响应式设计：小屏幕时菜单按钮收缩 */
@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .title {
    font-size: 18px;
  }
}
</style>